package chess;

import java.util.ArrayList;

public class ChessBox {
    private ArrayList<Chess> chesses = new ArrayList<>();

    public ChessBox() {
        Chess blackChess = BlackChess.get_BlackChess();
        Chess whiteChess = WhiteChess.get_WhiteChess();
        chesses.add(blackChess);
        chesses.add(whiteChess);
    }

    public Chess get_chess(String str) {
        if (str.equals("blackChess")) {
            return chesses.get(0);
        } else if (str.equals("whiteChess")) {
            return chesses.get(1);
        }
        return null;
    }

}


